import React, { Component } from 'react'

export default class NotFound extends Component {
  constructor(props) {
    super(props)
  }
  componentWillMount() {
    alert('404 NOT FOUND')
  
    this.props.history.push('/')
  }

  render() {
    // 非实体组件需显式返回 null
    return null
  }
}
